package fr.jade.event;


public class SimpleEvent implements Event {
	
	private EventHeader header;
	private EventBody body;
	
	public SimpleEvent(EventHeader type, EventBody body){
		this.header = type;
		this.body = body;
	}
	
	public EventHeader getEventHeader() {
		return this.header;
	}

	public EventBody getEventBody() {
		return this.body;
	}
	
	public String toString(){
		return "Header : " + header.toString() + "\tBody : "+body.toString();
	}

  public int hashCode() {
    return (body.toString()).hashCode();
  }
  
  
	
}
